﻿#region Using Directives

    using System;

    using Csla;

#endregion

namespace MarketPulse.Reporting.Core.Criteria
{
    /// <summary>
    /// Criteria class specifying a ClientGUID and QuestionID.
    /// </summary>
    [Serializable]
    public class ClientGUIDAndQuestionIDCriteria : CriteriaBase<ClientGUIDAndQuestionIDCriteria>
    {

        #region Constructors

        /// <summary>
        /// Default constructor for this class
        /// </summary>
        /// <param name="clientGUID">The ClientGUID to associate with this criteria</param>                      
        /// <param name="questionID">The QuestionID to associate with this criteria</param>                      
        public ClientGUIDAndQuestionIDCriteria(Guid clientGUID, long questionID)
        {
            ClientGUID = clientGUID;
            QuestionID = questionID;
        }

        #endregion

        #region Properties

            /// <summary>
            /// The ClientGUID for this criteria object.
            /// </summary>
            public static PropertyInfo<Guid> ClientGUIDProperty = RegisterProperty<Guid>(p => p.ClientGUID);
            /// <summary>
            /// The ClientGUID for this criteria object.
            /// </summary>
            public Guid ClientGUID
            {
                get { return ReadProperty(ClientGUIDProperty); }
                private set { LoadProperty(ClientGUIDProperty, value); }
            }

            /// <summary>
            /// The QuestionID for this criteria object.
            /// </summary>
            public static PropertyInfo<long> QuestionIDProperty = RegisterProperty<long>(p => p.QuestionID);
            /// <summary>
            /// The QuestionID for this criteria object.
            /// </summary>
            public long QuestionID
            {
                get { return ReadProperty(QuestionIDProperty); }
                private set { LoadProperty(QuestionIDProperty, value); }
            }

        #endregion

    }
}
